package com.aabte.design2.behavioral.mediator;

import lombok.Getter;
import lombok.Setter;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/5/3
 */
@Setter
@Getter
public class CheckBox extends Component {

    private String value;

    public CheckBox(Mediator dialog) {
        super(dialog);
    }

    public void check() {
        this.dialog.notify(this, "check");
    }

    public boolean isChecked() {
        return true;
    }

}
